<template>
  <div class="common-layout">
    <el-container>
      <el-header class="header" v-if="!route.meta.isFull">
        <MyHeader></MyHeader>
      </el-header>
      <el-aside width="200px" v-if="!route.meta.isFull">
          <MyAside></MyAside>
        </el-aside>
        <el-main  :class="route.meta.isFull?'full-page':''">
          <MyMain></MyMain>
        </el-main>
    </el-container>
  </div>
</template>

<script setup>
import MyHeader from './components/MyHeader.vue';
// import MyFooter from './components/MyFooter.vue';
import MyAside from './components/MyAside.vue';
import MyMain from './components/MyMain.vue';
import { useRoute } from 'vue-router';

const route = useRoute();
</script>

<style lang="less" scoped>
.header {
  background: #fff;
}
.main{
  height: calc(100vh - 60px);
  &.full-page{
    height: 100vh;
  }
}
</style>